package io.gitee.caoxiaoyu97.log4j.defender.constants;

import java.util.regex.Pattern;

public class DefenderConstants {
    public static final String LOG_DEFENDER_T3EVENT_STRING_KEYS = "log.defender.t3event.string.keys";
    public static final String LOG_DEFENDER_T3EVENT_MAX_VALUE_LEN = "log.defender.t3event.maxvaluelen";
    public static final String LOG_DEFENDER_T3EVENT_HEADER_KEYS = "log.defender.t3event.header.string.keys";
    public static final String LOG_DEFENDER_MARKER_VALUE = "log.defender.marker.value";
    public static final String LOG_DEFENDER_FUNCTION_ID_WHITE_LIST = "log.defender.functionid.whitelist";
    public static final String LOG_DEFENDER_REP_FUNCTION_ID_WHITE_LIST = "log.defender.skiprep.functionid.whitelist";
    public static final String LOG_DEFENDER_MARKER_DEFAULT_VALUE = "******";
    public static final String LOG_DEFENDER_MAX_LEN = "1000";
    public static final String PROTOCOL_T3 = "t3";
    public static final String LEFT_OBJ_MARK = "{";
    public static final String RIGHT_OBJ_MARK = "}";
    public static final String COMMA = ",";
    public static final String QUOTE = "\"";
    public static final String ESCAPE_QUOTE = "\\\"";
    public static final String COLON = ":";
    public static final Integer TWO = Integer.valueOf(2);


    public static final String ESCAPE = "\\";


    public static final String CXY_LOG_DEFENDER_ENABLE = "cxy.log.defender.enable";


    public static final String CXY_LOG_DEFENDER = "cxy.log.defender";

    public static final int DEFAULT_MAX_SEARCH_SIZE = 10000;

    public static final String DEFENDER_PLUGIN_NAME = "defender";

    public static final String REGEX_KEY = "regexkey";

    public static final String REGEX_VALUE = "regexvalue";

    public static final String STRING_FILED = "stringfield";

    public static final String BEAN = "bean";

    public static final Pattern DEFAULT_SPLIT_PATTERN = Pattern.compile("\\s*[,]+\\s*");

    public static final Pattern PRE_DELIMITER_PATTERN = Pattern.compile("[\\s\\t\\r\\n(（{,，\"]+");

    public static final String EQUAL_SIGN = "=";

    public static final String ARROW_SIGN = "->";

    public static final char QUOTE_CHAR = '"';

    public static final Pattern VALID_CONCAT_PATTERN = Pattern.compile("\\s*");

    public static final Pattern INVALID_VALUE_PATTERN = Pattern.compile(".*(\"|\\[|\\]|\\{|\\}|\\\\|null)+.*");
    public static final String ROOT = "root";
    public static final String ALL = "*";
    public static final String EMPTY = "";
    public static final String QUESTION = "?";
    public static final String START = "*";
}
